package com.vf.admin.client.service.impl;

import com.vf.admin.client.dao.ExchangeGoldDiamondsLogDao;
import com.vf.admin.client.service.ExchangeGoldDiamondsLogService;
import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.entity.ExchangeGoldDiamondsLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 兑换记录
 */
@Service
public class ExchangeGoldDiamondsLogServiceImpl implements ExchangeGoldDiamondsLogService {

    @Autowired
    ExchangeGoldDiamondsLogDao exchangeGoldDiamondsLogDao;

    @Override
    public List<ExchangeGoldDiamondsLog> page(Map<String, Object> paraMap, SplitPageBean splitPage) {
        return exchangeGoldDiamondsLogDao.page(paraMap, splitPage);
    }

    @Override
    public List<ExchangeGoldDiamondsLog> findList(Integer userId, SplitPageBean splitPage) {
        return exchangeGoldDiamondsLogDao.findList(userId, splitPage);
    }

    @Override
    public ExchangeGoldDiamondsLog get(Integer id) {
        return exchangeGoldDiamondsLogDao.get(id);
    }

    @Override
    public void saveOrUpdate(ExchangeGoldDiamondsLog haoYou) {
        exchangeGoldDiamondsLogDao.saveOrUpdate(haoYou);
    }

    @Override
    public void del(Integer id) {
        exchangeGoldDiamondsLogDao.del(id);
    }
}
